import request from '@/utils/request'

// 分页查询直播数据
export function pageLiveRoomApplyGoods(qurey) {
  return request({
    url: '/user/liveRoomApplyGoods/paging',
    method: 'get',
    params: qurey
  })
}

/**
 * 商品提交审核
 * @param memberId
 */
export function saveLiveRoomGoods(roomGoodsId, applyId, enterpriseId) {
  return request({
    url: '/user/liveRoomApplyGoods/saveLiveRoomGoods',
    method: 'get',
    params: { roomGoodsId: roomGoodsId, applyId: applyId, enterpriseId: enterpriseId }
  })
}

// 获取直播商品信息
export function getApplyGoods(roomGoodsId) {
  return request({
    url: '/user/liveRoomApplyGoods/getApplyGoodsById',
    method: 'get',
    params: { roomGoodsId: roomGoodsId }
  })
}

// 商品价格校验
export function doApplyGoodsPrice(query) {
  return request({
    url: '/user/liveRoomApplyGoods/doApplyGoodsPrice',
    method: 'post',
    data: query
  })
}
